<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script language="JavaScript" type="text/javascript"
	src="${ctx}/scripts/div/common.js"></script>
<style type="text/css">
<!--
body {
	background-image: url(${ctx}/images/bg.gif);
}
-->
</style>
<script type="text/javascript">

   function submitSearch(){

    var str = document.getElementById("houseNumber").value;
       str = str.replace(/[ ]/g,""); //替换所有
		   if(str==''){
		   return false;
		   }

   hiddenMenu();
   document.searchHouseCharge.submit();
   }

   function submitResearch(){

	   if(event.keyCode==13){
	   var str = document.getElementById("houseNumber").value;
       str = str.replace(/[ ]/g,""); //替换所有
		   if(str==''){
		   event.keyCode=0;
		   event.returnValue = false
		   return false;
		   }

		  hiddenMenu();
        document.searchHouseCharge.submit();
		}

   }

   function showCycleForward(){

   var url = "${ctx}/charge_chargeCycleForwardAction.do?method=chargeCycleForwardSmall";
		top.windowOpen(url, "chargeCycleForward", "", 340, 900);
   }

   function cycleForward(url){
   window.location.href=url;
   }

   function showMenu(type,bankAccountId){

	   if(document.getElementById("addBankAccountId")!=null){
	    btn_Edit("addBankAccountId","addBankAccountImg","ico_newfile");
	   }
	   if(document.getElementById("editBankAccountId")!=null){
	   btn_Edit("editBankAccountId","editBankAccountImg","ico_amend");
	   }
	   if(document.getElementById("deleteBankAccountId")!=null){
	    btn_Edit("deleteBankAccountId","deleteBankAccountImg","ico_delete");
	   }

	   document.getElementById("MenuItemfor").style.display="";
	   if(type=='0'){
	   if(document.getElementById("MenuBank")!=null){
	     document.getElementById("MenuBank").style.display="";
	   }

	   }
	   if(type=='1'){

	    if(document.getElementById("HistoryAccount")!=null){
	     document.getElementById("HistoryAccount").style.display="";
	    }
	   }
	   if(type=='2'){
	     if(document.getElementById("HistoryAccount")!=null){
	      document.getElementById("HistoryAccount").style.display="";
	     }
	     if(document.getElementById("MenuBank")!=null){
	      document.getElementById("MenuBank").style.display="";
	     }
	   }
	   if(bankAccountId!=''){
	     if(document.getElementById("addBankAccountId")!=null){
         btn_UnEdit("addBankAccountId","addBankAccountImg","ico_newfile2");
         }
       }else{
         if(document.getElementById("editBankAccountId")!=null){
          btn_UnEdit("editBankAccountId","editBankAccountImg","ico_amend2");
         }
         if(document.getElementById("deleteBankAccountId")!=null){
        btn_UnEdit("deleteBankAccountId","deleteBankAccountImg","ico_delete2");
        }
       }
   }
   function hiddenMenu(){

     document.getElementById("MenuItemfor").style.display="none";

     if(document.getElementById("MenuBank")!=null){
      document.getElementById("MenuBank").style.display="none";
     }
      if(document.getElementById("HistoryAccount")!=null){
     document.getElementById("HistoryAccount").style.display="none";
     }
   }

   function openHistoryAccount(){
       var iframe=findFrame("cashieringList");
       iframe.openHistoryAccount();
   }
   
   function openListPage(){
       var url ="${ctx}/charge_cashieringAction.do?method=goBatchPayPage";
      top.windowOpen(url,"listPage","批量收费",500,800);
   }

</script>

</head>

<body>

<div style="height:500px;overflow:auto;">
<div class="pageNav_bg">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td id="pageNav_leftimg"><img src="${ctx}/images/ico_sod.gif" width="46" height="47"/></td>
      <td id="navWord"><span class="page_title">${key.frontFee}</span></td>
      <td class="pageNav_right"><a href="#" style="CURSOR: hand;" onFocus="this.blur()" onClick="showCycleForward()"><img src="${ctx}/images/charage_buzhou.gif" border="0"></a>&nbsp;&nbsp;<a href="javascript:showFull_in();"><img id="full_image"  src="${ctx}/images/ico_fullscreen.gif" border="0"/></a></td>
    </tr>
  </table>
</div>

<div class="container">
  <table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
      <td>
	 <table width="100%" border="0" cellpadding="0" cellspacing="0">
  	<tr>
      <td class="bg_search">
	  <!-----------------------------搜索1----------------------------->
	  <table width="37%" border="0" cellpadding="0" cellspacing="0" id="search01" >
	  <form action="${ctx}/charge_cashieringAction.do?method=getResearchList" id="searchHouseCharge" name="searchHouseCharge" method="post" target="cashieringList">
        <tr>
		  <td class="grid align_left">${key.houseNumber}</td>
		  <td class="grid align_left"><input name="houseNumber" autocomplete="off" type="text" maxLength="36" class="inputtext" size="16"  onKeyPress="submitResearch();"></td>
		  <td class="grid align_left"><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_11"></td>
              <td class="buttonOffMiddle" id="btn1_12" onblur="btn_change(1)" onMouseOver="btn_change_over(1)" onMouseOut="btn_change_out(1)" onclick="submitSearch()"><img src="${ctx}/images/ico_searchico.gif" alt="" border="0" align="absmiddle"> ${key.research}</td>
              <td class="buttonOffRight" id="btn1_13"></td>
            </tr>
          </table></td>
          
 		<td class="grid align_left"><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_14"></td>
              <td class="buttonOffMiddle" id="btn1_15" onclick="openListPage()">批量缴费</td>
              <td class="buttonOffRight" id="btn1_16"></td>
            </tr>
          </table></td>
        </tr>
        </form>
      </table>

	  </td>
    </tr>
    <tr>
      <td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bg_toolBar2" id="MenuItemfor" style="display:none">
        <tr>
          <td align="right">
              <table border="0" cellpadding="0" cellspacing="0" >
                <tr>
                <td class="toolbarico" id="HistoryAccount" style="display:none"><a href="#" onClick="openHistoryAccount();" onFocus="this.blur()"><img src="${ctx}/images/charge_zhanghu.gif" border="0" align="absbottom"/>&nbsp;${key.histryAccount}</a>
                </td>
                <pms:AuthTag authName="menu.nopage.common.bankAccount">
                 <td class="toolbarico" id="MenuBank" style="display:none" onmouseover="showmenulist('quick_menumore',this)" onMouseOut="hidden2menu('quick_menumore')"><a href="#"> <img src="${ctx}/images/ico_yhhk_gh.gif" border="0" align="absbottom" alt=" "/>&nbsp;${key.bankManage}<img src="${ctx}/images/img_nav_third.gif" alt=" " border="0" align="absbottom"/></a></td>
                </pms:AuthTag>
                </tr>
            </table></td>
        </tr>
</table>
          <table width="100%" border="0" cellpadding="0" cellspacing="0">

            <tr>
              <td valign="top">
				<iframe  id="cashieringList"  name="cashieringList" height="400px" frameborder="0" border="0" src="${ctx}/charge_cashieringAction.do?method=getResearchList" width="100%" ></iframe>
			 </td>
    </tr>
  </table>
</div>
</div>
<div id="quick_menumore" class="quick_menu2">
      <table width="100%" border="0" cellpadding="1" cellspacing="0" class="grid_quickMenu_bg" onMouseOver="showmy2menu('quick_menumore')" onMouseOut="hidden2menu('quick_menumore')">
        <tr>
          <td><table width="100%" border="0" cellpadding="1" cellspacing="0">
          <pms:AuthTag authName="charge_cashieringAction.do?method=initAddBankAccount">
              <tr>
                <td class="quickMenu_toolbarico" id="addBankAccountId"><a href="#" onClick="addBankAccount();"onFocus="this.blur()"><img id="addBankAccountImg" src="${ctx}/images/ico_newfile.gif" alt="${key.addBankTitle}" border="0" align="absbottom"/>&nbsp;${key.addBank}</a></td>
              </tr>
           </pms:AuthTag>
           <pms:AuthTag authName="charge_cashieringAction.do?method=initEditBankAccount">
              <tr>
                <td class="quickMenu_toolbarico" id="editBankAccountId"><a href="#" onClick="editBankAccount();" onFocus="this.blur()"><img id="editBankAccountImg" src="${ctx}/images/ico_amend.gif" alt="${key.editBankTitle}" border="0" align="absbottom"/>&nbsp;${key.editBank}</a></td>
              </tr>
              </pms:AuthTag>
              <pms:AuthTag authName="charge_cashieringAction.do?method=deleteBankAccount">
              <tr>
                <td class="quickMenu_toolbarico" id="deleteBankAccountId"><a href="#" onClick="deleteBankAccount();" onFocus="this.blur()"><img id="deleteBankAccountImg" src="${ctx}/images/ico_delete.gif" width="16" height="16" border="0" align="absbottom">&nbsp;${key.deleteBank}</a></td>
              </tr>
        </pms:AuthTag>
                </table></td>
        </tr>
      </table>
</div>

  </body>

 <script type="text/javascript">
    var iframeObj=findFrame("cashieringList");
    function addBankAccount(){
    if(document.getElementById("addBankAccountId").className=='quickMenu_toolbarico2')return false;
    iframeObj.addBankAccount();
    }

    function editBankAccount(){
    if(document.getElementById("editBankAccountId").className=='quickMenu_toolbarico2')return false;
    iframeObj.editBankAccount();
    }

    function deleteBankAccount(){
    if(document.getElementById("deleteBankAccountId").className=='quickMenu_toolbarico2')return false;
    iframeObj.deleteBankAccount();
    }

    document.searchHouseCharge.houseNumber.focus();

 </script>
</html>